var express = require('express');
var app = express();
var cors = require('cors')
app.use(cors())
//post
var bodyparser = require('body-parser');
app.use(bodyparser.json());
app.use(bodyparser.urlencoded({extended:false}));
//get
var bookAPI = require("./controllerAPI/api-controller");
app.use("/api/books", bookAPI);
app.listen(3060);

console.log("Server up and running on port 3060");
